package com.hz.interfaces.user.inf;

import java.util.List;

import com.hz.base.beans.vo.CommonResult;
import com.hz.base.beans.vo.PageEntity;
import com.hz.base.beans.vo.QueryParams;
import com.hz.beans.user.entity.BaseRole;

public interface IBaseRoleInterface {

	CommonResult<BaseRole> addRole(BaseRole baseRole, Long[] menuIds);

	CommonResult<List<BaseRole>> queryRoleList(QueryParams<BaseRole> queryParams);

	CommonResult<BaseRole> queryRole(Long id);

	CommonResult<BaseRole> updateRole(BaseRole baseRole);

	CommonResult<Object> deleteRoleArray(Long[] ids);

	CommonResult<PageEntity> queryForPage(QueryParams<BaseRole> queryParams);
	
	CommonResult<BaseRole> insertSelective(BaseRole baseRole);
	
	CommonResult<Object> deleteByList(List<BaseRole> baseRoleList);
	
	CommonResult<List<BaseRole>> batchUpdate(List<BaseRole> baseRoleList);
	
	CommonResult<List<BaseRole>> batchSave(List<BaseRole> baseRoleList);
	
}
